ci: Several improvements#684
Closed
simensrostad wants to merge 3 commits into
Closed
Conversation
Add a `test_filter` / `pytest_args` workflow input that lets callers pass a pytest `-k` expression to run a subset of tests. The filter is forwarded from `build-and-target-test.yml` to `target-test.yml`, where it gets appended to the pytest invocation. Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
Add `erase_secondary_trailer()` to wipe the last 4 KiB of the MCUboot secondary slot before each FOTA download starts. `stream_flash` skips the trailer sector during writes, and on external SPI-NOR flash the stale trailer causes `boot_set_pending()` to fail with `-EFAULT` after an otherwise successful download. Add fakes for `flash_area_open`, `flash_area_erase`, and `flash_area_close` to the FOTA module tests. Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
Add `test_bootloader_fota` to verify B1 MCUboot FOTA on Thingy:91 X. Checks `bootloaderVersion` in nRF Cloud shadow before (v2) and after (v3) the update, and verifies B0 UART output post-swap. Also refactor the FOTA poll loop into `trigger_fota_poll`, pass `MCUBOOT_BUNDLEID` env var through CI, and set a default signing key for nRF9151 DK in sysbuild config. Setting the signing key will allow us to run the test on the DK as well. This will be added once the new DTS partition schema is in place. Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
a43652a to
fad623b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Its expected that CI will be red until NCS has been updated.